import loginUrl from "./loginUrl";
import { pdmService } from "@/utils/request";

  // 创建域
export function userLogin({ userName, password, domainId }) {
  let url = domainId ? `${loginUrl.USERLOGIN}/${domainId}` : loginUrl.USERLOGIN;
  return pdmService({
    method: "post",
    url: url,
    data: {
      name: userName,
      password,
    }
  })
}
export function userLogout(){
  return pdmService({
    method: "get",
    url: loginUrl.userLogout,
  })
}


